package com.xomily.devops.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xomily.common.annotation.Excel;
import com.xomily.common.core.domain.BaseEntity;

/**
 * 磁盘运维日志对象 dev_disc
 * 
 * @author xomily
 * @date 2021-11-29
 */
public class DevDisc extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 主机IP地址 */
    @Excel(name = "主机IP地址")
    private String ip;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 大小 */
    @Excel(name = "大小")
    private double size;

    /** 已用 */
    @Excel(name = "已用")
    private double used;

    /** 可用 */
    @Excel(name = "可用")
    private double avail;

    /** 使用率 */
    @Excel(name = "使用率")
    private double useRate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSize(double size) 
    {
        this.size = size;
    }

    public double getSize() 
    {
        return size;
    }
    public void setUsed(double used) 
    {
        this.used = used;
    }

    public double getUsed() 
    {
        return used;
    }
    public void setAvail(double avail) 
    {
        this.avail = avail;
    }

    public double getAvail() 
    {
        return avail;
    }
    public void setUseRate(double useRate) 
    {
        this.useRate = useRate;
    }

    public double getUseRate() 
    {
        return useRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ip", getIp())
            .append("name", getName())
            .append("size", getSize())
            .append("used", getUsed())
            .append("avail", getAvail())
            .append("useRate", getUseRate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
